package com.catchu.pattern.creational.命令模式.command;

import com.catchu.pattern.creational.命令模式.receive.BaseReceiver;
import com.catchu.pattern.creational.命令模式.receive.DesignerReceiver;

public class DesignerCommand extends BaseCommand{

    public DesignerCommand() {
        super(new DesignerReceiver());
    }

    public DesignerCommand(BaseReceiver baseReceiver) {
        super(baseReceiver);
    }

    @Override
    public void execute() {
        this.baseReceiver.doSomething();
    }
}
